cmake_minimum_required(VERSION 3.0)

project(stun_protocol)

include_directories(./)
include_directories(./../)
include_directories(./../../)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

set(test_stun_protocol_attr_src_list ./test_stun_protocol_attr.cpp ./../stun_protocol_attr.cpp ./../../string_util/string_util.cpp ./../../compress/compress.cpp ./../../base64/base64.cpp)

add_executable(TEST_STUN_PROTOCOL_ATTR ${test_stun_protocol_attr_src_list})

set(test_stun_protocol_parser_src_list ./test_stun_protocol_parser.cpp ./../stun_protocol_attr.cpp ./../stun_protocol_msg.cpp ./../stun_protocol_parser.cpp ./../../string_util/string_util.cpp ./../../compress/compress.cpp ./../../base64/base64.cpp)

add_executable(TEST_STUN_PROTOCOL_PARSER ${test_stun_protocol_parser_src_list})

set(test_stun_protocol_compose_src_list ./test_stun_protocol_compose.cpp ./../stun_protocol_attr.cpp ./../../string_util/string_util.cpp ./../../compress/compress.cpp ./../../base64/base64.cpp ./../stun_protocol_msg.cpp)

add_executable(TEST_STUN_PROTOCOL_COMPOSE ${test_stun_protocol_compose_src_list})

set(libs gtest gtest_main ssl crypto z)

target_link_libraries(TEST_STUN_PROTOCOL_ATTR ${libs})
target_link_libraries(TEST_STUN_PROTOCOL_PARSER ${libs})
target_link_libraries(TEST_STUN_PROTOCOL_COMPOSE ${libs})
